<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" 
           uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="${pageContext.request.contextPath}/themes/bootstrap/easyui.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/themes/icon.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/css/bootstrap.min.css" rel="stylesheet">
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/customerJS/showrestaurant.js"></script>
<style type="text/css">
body {
	margin-top: 30px;
}
</style>
</head>
<body>
	<div class="rows">
		<div class="col-md-6">
			<form action="${pageContext.request.contextPath}/getRestaurant" class="form-inline" method="post">
				<div class="input-group">
					<input type="text" class="form-control" name="key"> <span
						class="input-group-btn">
						<button class="btn btn-default" type="submit">查询</button>
					</span>
				</div>
			</form>
		</div>
	</div>
	<div class="rows col-md-12">
		<table id="sellertable" class="table table-striped">
			<thead>
				<tr>
					<th id="sid" style="display: none; width: 80px">sid</th>
					<th id="index" style="width: 80px"></th>
					<th id="sname" style="width: 120px">餐厅名</th>
					<th id="saddress" style="width: 150px">餐厅地址</th>
					<th id="sphone" style="width: 80px">餐厅电话</th>
					<th id="semail" style="width: 80px">餐厅邮箱</th>
				</tr>
			</thead>
			<tbody id="tbody">
				<c:forEach items="${sellers}" var="seller" varStatus="sel">
					<tr>
						<td style="display: none;">value="${seller.sid}"</td>
						<td>${sel.index+1}</td>
						<td><a href="bookDish?sid=${seller.sid}">${seller.sname}</a></td>
						<td>${seller.saddress}</td>
						<td>${seller.sphone}</td>
						<td>${seller.semail}</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
		<div class="page" align="center">
			<ul class="pagination">${page}
			</ul>
		</div>
	</div>
</body>
</html>